package com.mushuilingfeng.ddd.user.domain.org.service.impl;

import com.mushuilingfeng.ddd.user.domain.base.service.StorageAtomicIntegerService;
import com.mushuilingfeng.ddd.user.domain.org.service.IOrgApplyService;
import com.mushuilingfeng.ddd.framework.AsSpringBean;
import com.mushuilingfeng.ddd.framework.factory.DomainServiceFactory;

/**
 * @author
 * @date 2024/9/19
 */
@AsSpringBean
public class OrgApplyService implements IOrgApplyService {

    private static final String ORG_APPLY_NO_PREFIX = "OAP#";

    @Override
    public String newOrgApplyNo() {
        return ORG_APPLY_NO_PREFIX + DomainServiceFactory.getDomainService(StorageAtomicIntegerService.class).getAndIncrement("OrgApplyService");
    }

}
